class Container {
    String name
    Boolean budgetLocked = false
    String picture = "merp_logo_small.png"
    String link = "http://www.hetmedia.se/megasoft/"

    static hasMany = [areas : Area, tabs : Tab]
    
    static constraints = {
        name()
        areas()
        picture(nullable:true)
        link(nullable:true)
    }

    public String toString(){
        return name;
    }
    
    public boolean hasTab(String t){
        if(tabs.contains(Tab.findByName(t))){
            return true;
        }
        return false;
    }
    
    
    

    


}
